home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BCI NET 2
/
BCI NET 2.iso
/
archives
/
programming
/
c
/
amivogl-1.03.lzh
/
vogl
/
drivers
/
ibmpc
/
pc_locat.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1991-07-18
|
348 b
|
32 lines
#include "vogl.h"
static int have_mouse = 0;
extern int ismouse(), readmouse();
pc_locinit(x, y)
int x, y;
{
if ((have_mouse = ismouse(x, y)))
showmouse();
return(0);
}
int
pc_locator(x, y)
int *x, *y;
{
int ix, iy, b;
if (!have_mouse)
return (-1);
b = readmouse(&ix, &iy);
*x = ix;
*y = vdevice.sizeSy - iy;
return (b);
}